package eswc.cleaner;

import lombok.AccessLevel;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import com.javadocmd.simplelatlng.LatLng;

@ToString

public class Affiliation implements Comparable<Affiliation> {
	private final String name;
	private final String uri;
	
	@Setter(AccessLevel.PUBLIC) 
	private LatLng coords;//changed because I don't know the geo location before ;)
	
	
	/**
	 * Percentage of all check ins in affiliations
	 */
	@Getter(AccessLevel.PUBLIC)
	@Setter(AccessLevel.PUBLIC) 
	private Float relevance=0f;
	
	public Affiliation(String name, String uri, LatLng coords) {
		this.name = name;
		this.uri = uri;
		this.coords = coords;
	}

	public String getName() {
		return name;
	}

	public String getUri() {
		return uri;
	}

	public LatLng getCoords() {
		return coords;
	}

	public int compareTo(Affiliation o) {
		return -relevance.compareTo(o.relevance);
	}
	
}
